package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.CcsEnableAppointmentMapper;
import com.ruoyi.system.domain.CcsEnableAppointment;
import com.ruoyi.system.service.ICcsEnableAppointmentService;

/**
 * 可预约Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Service
public class CcsEnableAppointmentServiceImpl implements ICcsEnableAppointmentService 
{
    @Autowired
    private CcsEnableAppointmentMapper ccsEnableAppointmentMapper;

    /**
     * 查询可预约
     * 
     * @param id 可预约主键
     * @return 可预约
     */
    @Override
    public CcsEnableAppointment selectCcsEnableAppointmentById(Long id)
    {
        return ccsEnableAppointmentMapper.selectCcsEnableAppointmentById(id);
    }

    /**
     * 查询可预约列表
     * 
     * @param ccsEnableAppointment 可预约
     * @return 可预约
     */
    @Override
    public List<CcsEnableAppointment> selectCcsEnableAppointmentList(CcsEnableAppointment ccsEnableAppointment)
    {
        return ccsEnableAppointmentMapper.selectCcsEnableAppointmentList(ccsEnableAppointment);
    }

    /**
     * 新增可预约
     * 
     * @param ccsEnableAppointment 可预约
     * @return 结果
     */
    @Override
    public int insertCcsEnableAppointment(CcsEnableAppointment ccsEnableAppointment)
    {
        return ccsEnableAppointmentMapper.insertCcsEnableAppointment(ccsEnableAppointment);
    }

    /**
     * 修改可预约
     * 
     * @param ccsEnableAppointment 可预约
     * @return 结果
     */
    @Override
    public int updateCcsEnableAppointment(CcsEnableAppointment ccsEnableAppointment)
    {
        return ccsEnableAppointmentMapper.updateCcsEnableAppointment(ccsEnableAppointment);
    }

    /**
     * 批量删除可预约
     * 
     * @param ids 需要删除的可预约主键
     * @return 结果
     */
    @Override
    public int deleteCcsEnableAppointmentByIds(Long[] ids)
    {
        return ccsEnableAppointmentMapper.deleteCcsEnableAppointmentByIds(ids);
    }

    /**
     * 删除可预约信息
     * 
     * @param id 可预约主键
     * @return 结果
     */
    @Override
    public int deleteCcsEnableAppointmentById(Long id)
    {
        return ccsEnableAppointmentMapper.deleteCcsEnableAppointmentById(id);
    }
}
